<ul class="nav-box-left" id="nav-box-left">
    <li resId="14"  style="display: none">
        <a class="left-menu <%=(params["userManage"]=="true" ?params["className"]: '')%>" hrefIndex="0">用户管理</a>
    </li>
    <li resId="15" style="display: none">
        <a class="left-menu <%=(params["accountManage"]=="true" ?params["className"]: '')%>" hrefIndex="1">账号管理</a>
    </li>
    <li resId="13" style="display: none">
        <a class="left-menu <%=(params["deviceManage"]=="true" ?params["className"]: '')%>" hrefIndex="2">设备管理</a>
    </li>
    <li resId="16" style="display: none">
        <a class="left-menu <%=(params["roleManage"]=="true" ?params["className"]: '')%>" hrefIndex="3">角色管理</a>
    </li>
</ul>
<script type="text/javascript" src="js/jquery/jquery.1.11.3.min.js"></script>
<script type="text/javascript">
    var secondMenus = window.sessionStorage.getItem("chidlMenus");
    if(secondMenus){
        secondMenus = JSON.parse(secondMenus);
        if(secondMenus.length){
            for(var k=0;k<secondMenus.length;k++){
                var parentId = secondMenus[k]["parentId"];
                var itemId = secondMenus[k]["id"];
                if(parentId == "4"){
                    $("#nav-box-left").find("li[resId='"+itemId+"']").show();
                }
            }
            $("#nav-box-left").find("li:hidden").remove();
        }
    }
</script>